package com.jx.controller.admin.content;

import com.jx.common.result.AjaxResult;
import com.jx.pojo.entity.content.Label;
import com.jx.service.content.LabelService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/label")
public class LabelController {

    @Resource
    private LabelService labelService;

    @GetMapping("/listAll")
    public AjaxResult listAll() {
        List<Label> list =  labelService.listAll();
        return AjaxResult.success(list);
    }

}
